package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ProjectFeedbackMapper;
import com.ruoyi.system.domain.ProjectFeedback;
import com.ruoyi.system.service.IProjectFeedbackService;

/**
 * 项目问题反馈Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-04-24
 */
@Service
public class ProjectFeedbackServiceImpl implements IProjectFeedbackService 
{
    @Autowired
    private ProjectFeedbackMapper projectFeedbackMapper;

    /**
     * 查询项目问题反馈
     * 
     * @param feedbackId 项目问题反馈主键
     * @return 项目问题反馈
     */
    @Override
    public ProjectFeedback selectProjectFeedbackByFeedbackId(Long feedbackId)
    {
        return projectFeedbackMapper.selectProjectFeedbackByFeedbackId(feedbackId);
    }

    /**
     * 查询项目问题反馈列表
     * 
     * @param projectFeedback 项目问题反馈
     * @return 项目问题反馈
     */
    @Override
    public List<ProjectFeedback> selectProjectFeedbackList(ProjectFeedback projectFeedback)
    {
        return projectFeedbackMapper.selectProjectFeedbackList(projectFeedback);
    }

    /**
     * 新增项目问题反馈
     * 
     * @param projectFeedback 项目问题反馈
     * @return 结果
     */
    @Override
    public int insertProjectFeedback(ProjectFeedback projectFeedback)
    {
        return projectFeedbackMapper.insertProjectFeedback(projectFeedback);
    }

    /**
     * 修改项目问题反馈
     * 
     * @param projectFeedback 项目问题反馈
     * @return 结果
     */
    @Override
    public int updateProjectFeedback(ProjectFeedback projectFeedback)
    {
        return projectFeedbackMapper.updateProjectFeedback(projectFeedback);
    }

    /**
     * 批量删除项目问题反馈
     * 
     * @param feedbackIds 需要删除的项目问题反馈主键
     * @return 结果
     */
    @Override
    public int deleteProjectFeedbackByFeedbackIds(Long[] feedbackIds)
    {
        return projectFeedbackMapper.deleteProjectFeedbackByFeedbackIds(feedbackIds);
    }

    /**
     * 删除项目问题反馈信息
     * 
     * @param feedbackId 项目问题反馈主键
     * @return 结果
     */
    @Override
    public int deleteProjectFeedbackByFeedbackId(Long feedbackId)
    {
        return projectFeedbackMapper.deleteProjectFeedbackByFeedbackId(feedbackId);
    }
}
